# 继承语法
# A类继承B类

class A:
    def __init__(self):
        self.name = 'python'
        self.age = 10


class B(A):
    pass


p1 = B()
print(p1.name)
print(p1.age)
